﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace jQuery.Ajax
{
    public partial class CAPTCHA : System.Web.UI.Page
    {
        protected bool IsValid = false;
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            if (BitAuto.Utils.ValidatecodeTool.ValidateInputcode(inputCode.Text))
            {
                this.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "<script type='text/javascript'>alert('验证正确!')</script>");
            }
            else
            {
                this.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "<script type='text/javascript'>alert('验证码有误，请重新输入!')</script>");
            }
        }
    }
}